

package cn.gz3c.uitest;

import com.huawei.hms.audioeditor.sdk.asset.HAEAsset;
import com.huawei.hms.audioeditor.sdk.effect.HAEEffect;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public class t {
    private t.c a = new c();
    public List<t.a> b = new ArrayList<>();
    private final int c = 1;

    public t() {
    }

    public int b() {
        return this.c;
    }

    public synchronized List<t.a> a() {
        this.b.clear();
        int var1;
        t.b var2;
        Iterator var5;
        if ((var1 = this.c) != 1) {
            if (var1 == 2) {
                var5 = this.a.b.iterator();

                while (var5.hasNext()) {
                    var2 = (t.b) var5.next();
                    this.b.add(new a(2, var2));
                }
            }
        } else {
            var5 = this.a.a.iterator();

            label41:
            while (true) {
                do {
                    if (!var5.hasNext()) {
                        return this.b;
                    }

                    var2 = (t.b) var5.next();
                    this.b.add(new a(var2.e, var2));
                } while (this.a.b.size() <= 0);

                Iterator var6 = var2.a.iterator();

                while (true) {
                    do {
                        if (!var6.hasNext()) {
                            continue label41;
                        }
                    } while (!((HAEAsset) var6.next()).getUuid().equals(((t.b) this.a.b.get(0)).d));

                    Iterator var3 = this.a.b.iterator();

                    while (var3.hasNext()) {
                        t.b var4 = (t.b) var3.next();
                        this.b.add(new a(var4.e, var4));
                    }
                }
            }
        }

        return this.b;
    }

    public t.c c() {
        return this.a;
    }

    public static class b {
        public List<HAEAsset> a = new ArrayList<>();
        public List<HAEEffect> b = new ArrayList<>();
        public int c;
        public String d;
        public int e;

        public b(int var1, List<HAEAsset> var2, int var3) {
            this.c = var1;
            this.a = var2;
            this.e = var3;
        }

        public b(int var1, List<HAEEffect> var2, int var3, String var4) {
            this.c = var1;
            this.b = var2;
            this.d = var4;
            this.e = var3;
        }
    }

    public static class a {
        public int a;
        public t.b b;

        public a(int var1, t.b var2) {
            this.a = var1;
            this.b = var2;
        }
    }

    public static class c {
        public List<t.b> a = Collections.synchronizedList(new ArrayList<>());
        public List<t.b> b = new ArrayList<>();

        public c() {
        }

        public List<t.b> a(int var1) {
            if (var1 != 1) {
                return (var1 != 2 ? new ArrayList<>() : this.b);
            } else {
                return this.a;
            }
        }
    }
}
